package com.zqu.service.impl;

import com.zqu.mapper.DevelopmentPlanDetailMapper;
import com.zqu.pojo.DevelopmentPlanDetail;
import com.zqu.service.DevelopmentPlanDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DevelopmentPlanDetailServiceImpl implements DevelopmentPlanDetailService {

    @Autowired(required = false)
    private DevelopmentPlanDetailMapper developmentPlanDetailMapper;

    @Override
    public DevelopmentPlanDetail selectDevelopmentPlanDetailById(long id) {
        return developmentPlanDetailMapper.selectTById(id);
    }

    @Override
    public List<DevelopmentPlanDetail> selectList(DevelopmentPlanDetail developmentPlanDetail) {
        return developmentPlanDetailMapper.selectList(developmentPlanDetail);
    }

    @Override
    public boolean insertDevelopmentPlanDetail(DevelopmentPlanDetail developmentPlanDetail) {
        return developmentPlanDetailMapper.insertT(developmentPlanDetail)>0;
    }

    @Override
    public boolean updateDevelopmentPlanDetail(DevelopmentPlanDetail developmentPlanDetail) {
        return developmentPlanDetailMapper.updateT(developmentPlanDetail)>0;
    }

    @Override
    public boolean deleteDevelopmentPlanDetail(long id) {
        return developmentPlanDetailMapper.deleteT(id)>0;
    }

    @Override
    public boolean deleteDevelopmentPlanDetailByIds(String[] ids) {
        return developmentPlanDetailMapper.deleteTByIds(ids)>0;
    }
}
